package cn.bonoon.kernel.expression.results;

import cn.bonoon.kernel.events.ReadEvent;
import cn.bonoon.kernel.expression.ExpressionValue;
import cn.bonoon.kernel.expression.StandardExpressionParser;

public class FixedExpressionValue implements ExpressionValue{
	private final Object fixedValue;
	
	public FixedExpressionValue(StandardExpressionParser seParser, Object fixedValue){
		this.fixedValue = fixedValue;
	}

	@Override
	public Object value(ReadEvent event, Object defaultValue) {
		return fixedValue;
	}
	
}
